package com.zixuan.sina.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Post {
    @TableId(value = "post_id", type = IdType.ASSIGN_ID)
    private String postId;
    private String userId;
    private String content;
    private String title;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date postTime;
    private String videoUrl;
    private String imgUrl;
    private String type;
    private boolean commentShow;
    private int isSpecial;//是否为精选
    private int isShow;
    private String reasion;


}
